$(document).ready(function() {
    // 绑定点击事件到新书列表项
    $('.new-book ul').on('click', '.item', function() {
        var bookId = $(this).data('id');
        location.href = './bookDetail.html?id=' + bookId;
    });

    // 绑定点击事件到畅销书列表项
    $('.best ul').on('click', '.item', function() {
        var bookId = $(this).data('id');
        location.href = './bookDetail.html?id=' + bookId;
    });
});